#coding=utf-8
from django.db import models
from share import Share

class TradableShare(models.Model):
    
    share = models.ForeignKey('Share')
    date = models.DateField()
    quantity = models.IntegerField()
    
    created_at = models.DateField(auto_now_add=True)
    
    def __unicode__(self):
        ltag = unicode('流通A股数量', 'u8')
        return "%s of %s since %s"%(ltag, self.share.name, self.date )
        
    class Admin:pass
    class Meta:
        app_label = 'shstock'
